/// <reference path="../_all.ts" />

module Application.Services {

    export class InteractiveService implements Application.Interfaces.Services.IInteractiveService {
        _playerClass: Application.Resources.IPlayerClass;

        public static $inject = [
            '$http',
            '$resource',
        ];

        constructor(public Http: ng.IHttpService, public Resource: ng.resource.IResourceService) {
            this._playerClass = <Application.Resources.IMemberClass> this.Resource(Application.Services.ServiceUtility.GetServiceURL('players/:id'), null, {
                saveCollection: { method: 'POST', isArray: true }
            });
        }
    };
}